// server.js
const express = require("express");
const app = express();
const port = 3001;

app.use(express.json());

app.get("/mock-endpoint", (req, res) => {
  res.json({ message: "GET request received", data: req.query });
});

app.post("/mock-endpoint", (req, res) => {
  res.json({ message: "POST request received", data: req.body });
});

app.listen(port, () => {
  console.log(`Server is running at http://localhost:${port}`);
});
